package com.zhms.mongotest.bean;

import org.bson.types.ObjectId;

/**
 * Created by cape on 3/7/2017.
 */
public class Person {

    ObjectId id;
    String name;
    int age;
    Address address;

    public Person() {
    }


    public Person(String name, int age, Address address) {
        this.name = name;
        this.age = age;
        this.address = address;
    }


    @Override
    public String toString() {
        return "name:" + this.name + ",age:" + this.age + ",address:" + this.address;
    }
}






































